package com.android.scj.tc.bean;

/**
 *
 * 设置CRC/协议切换 返回
 * @author LiuYaDong
 */
public class CRCSwitchingResponse {
/*	0	1	Status	0x00表示正常返回，0x01表示无响应	*/

	private static final String cmdcode = "B9";
	private String Status = "00";
	private CMD_55AA cmd = null;
	private CRCSwitchingResponse(){}
	public static CRCSwitchingResponse disassemble(String cmdstr){
		CRCSwitchingResponse c = new CRCSwitchingResponse();
		c.cmd = CMD_55AA.disassemble(cmdstr);
		if(c.cmd == null || !c.cmd.getCMD().equals(cmdcode) || c.cmd.getDATA().length() != 2) return null;
		c.Status = c.cmd.getDATA();
		return c;
	}
	public String getStatus() {
		return Status;
	}

}
